package xxm.utility.thread;

public class BasicThreadTask implements Runnable {

	protected String strPoolName;
	protected String strTaskName;
	protected boolean taskState = false;
	
	public boolean isTaskState() {
		return taskState;
	}


	public void setTaskState(boolean taskState) {
		this.taskState = taskState;
	}


	public String getStrPoolName() {
		return strPoolName;
	}


	public void setStrPoolName(String strPoolName) {
		this.strPoolName = strPoolName;
	}


	public String getStrTaskName() {
		return strTaskName;
	}


	public void setStrTaskName(String strTaskName) {
		this.strTaskName = strTaskName;
	}


	@Override
	public void run() {
		// TODO Auto-generated method stub

	}
	
	public void stopTask() {
		taskState = false;
		new Thread(this).stop();
	}
	
	public void startTask() {
		taskState = true;
	}

}
